package com.yootk.server;
import java.io.PrintStream;
import java.net.ServerSocket;
import java.net.Socket;

public class HelloServer {
    public static  void  main(String[] args) throws  Exception{
        ServerSocket serverSocket=new ServerSocket(9999);
        System.out.println("【helloServer】服务器端启动监听......");
        Socket client=serverSocket.accept();
        PrintStream out=new PrintStream(client.getOutputStream());
        out.println("www.yootk.com");
        client.shutdownOutput();
        serverSocket.close();
    }
}
